import request from '@/utils/request'

export function getCourseList(data) {
  return request({
    url: '/course/list',
    method: 'post',
    data
  })
}

export function saveCourse(data) {
  return request({
    url: '/course',
    method: 'post',
    data
  })
}

export function updateCourse(data) {
  return request({
    url: '/course',
    method: 'put',
    data
  })
}

export function deleteCourse(id) {
  return request({
    url: `/course/${id}`,
    method: 'delete'
  })
}

export function batchDeleteCourse(ids) {
  return request({
    url: '/course/batch',
    method: 'delete',
    data: ids
  })
} 